/**
 * Copyright (C), 2015-2018, XXX有限公司
 * FileName: UserDict
 * Author:   zhouheng
 * Date:     2018/6/24 11:18
 * Description: 系统用户字典包装类
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.hengby.hengcrud.core.common.dictmap;

import com.hengby.hengcrud.core.common.dictmap.base.AbtractDictMap;

/**
 * 〈一句话功能简述〉<br> 
 * 〈系统用户字典包装类〉
 *
 * @author zhouheng
 * @create 2018/6/24
 * @since 1.0.0
 */
public class UserDict extends AbtractDictMap{

    @Override
    public void initBeWrapped() {
        putFieldWrapperMethodName("sex","getSexName");
        putFieldWrapperMethodName("deptid","getDeptName");
        putFieldWrapperMethodName("roleid","getSingleRoleName");
        putFieldWrapperMethodName("userId","getUserAccountById");
        putFieldWrapperMethodName("roleIds","getRoleName");
    }

    @Override
    public void init() {
        put("userId","账号");
        put("avatar","头像");
        put("account","账号");
        put("name","名字");
        put("birthday","生日");
        put("sex","性别");
        put("email","电子邮件");
        put("phone","电话");
        put("roleid","角色名称");
        put("deptid","部门名称");
        put("roleIds","角色名称集合");
    }
}